Loading languages...
SU

Subnet Calculator MCP Server

@melihteke4

이 프로젝트는 주어진 CIDR(Classless Inter-Domain Routing) 표기법을 기반으로 서브넷 세부 정보를 계산하는 간단한 mcp servers를 제공합니다. FastMCP 라이브러리를 사용하여 서브넷 계산 기능을 도구로 노출합니다.

subnet
calculator
network
cidr
python

Subnet Calculator MCP Server

alt text This project provides a simple MCP (Model Context Protocol) server for calculating subnet details based on a given CIDR (Classless Inter-Domain Routing) notation. It uses the FastMCP library to expose the subnet calculation functionality as a tool.

Features

  1. Calculate subnet details for a given CIDR.
  2. Provides:
  • Network address
  • Broadcast address
  • Netmask
  • Wildcard mask
  • Usable host range
  • Number of usable hosts
  1. Runs as an MCP server with SSE (Server-Sent Events) transport.

Requirements

  • Python 3.7+
  • fastmcp library

Installation

  • Clone the repository or copy the script.
  • Install the required dependencies:
pip install fastmcp mcp[cli]

Usage

THis MCP runs with SSE transport mode.

Run the MCP server:

python main.py

How to add this Server to your MCP Client

Goose MCP Client

  • Click Menu ("..." icon) and select Advanced settings:

alt text

alt text

  • Go extentions section

alt text

  • Select "Add custom extentions"

alt text

  • Select Server-Sent Events as Type
  • Select a random ID
  • Select Name for the MCP Server
  • Sleect Description
  • Enter URI : https://mcp-subnet-calculator.mteke.com/sse
  • Click Add button

alt text

Now the MCP Server(extention is added and enabled) alt text

Now the MCP server is activated: alt text

You can watch the video to demonstrate how to enable mcp server on Goose Client App: Watch the demo

Claude Desktop MCP Client

  • Select Claude Desktop Settings
  • Select Developer and Edit config
  • Change claude_desktop_config.json content to below
{
  "mcpServers": {
    "mcp-subnet-calculator-sse": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--sse",
        "https://mcp-subnet-calculator.mteke.com/sse"
      ]
    }
  }
}
  • Close Claude Desktop App completely and restart it

You can watch the video to demonstrate how to enable mcp server on Claude Desktop Client App:

Watch the demo

How to add Subnet Calculator MCP Server to your Goose Client

Watch the demo

How to add Subnet Calculator MCP Server to N8N Instance

Watch the demo

# mcpServer Config

{
  "mcpServers": {
    "mcp-subnet-calculator-sse": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--sse",
        "https://mcp-subnet-calculator.mteke.com/sse"
      ]
    }
  }
}

# sseURL

https://mcp-subnet-calculator.mteke.com/sse
Transport:
sse
Language:
Python
Created: 4/16/2025
Updated: 9/4/2025